#x+y+z=100;
#15x+9y+z=300
#小鸡（z）=100-x-y=300-15x-9y

count =0
for cock in range(0,20):
    for hen in range(0,35):
        if 14*cock + 8*hen == 200 and 100 - cock -hen>=0:
            count +=1
            print("公鸡数量为：{},母鸡数量为：{},小鸡数量为：{}".format(cock,hen,100-cock-hen))
print("总共有",count,"种解决方案。")
